<template>
  <div class="hello">
    <!-- <div style="text-align: center">
      <el-button type="primary" size="mini" @click="dataFormData1()">获取数据</el-button>
    </div> -->
    <ng-form-design ref="formBuild" :form-template="form" />
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data() {
    return {
      form: {} // 表单配置json
    }
  },
  methods: {
    dataFormData1() {
      console.log(this.$refs.formBuild.getModel())
      const data = this.$refs.formBuild.getModel()
      console.log(JSON.stringify(data))
    }
  }
}
</script>

<style scoped>
.hello {
  height: 100%;
}
</style>
